package zheezes.util;

import org.apache.log4j.DailyRollingFileAppender;
import org.apache.log4j.Logger;

public class Log4jUtil {
	public static void setLogFile(String fileName) {
		DailyRollingFileAppender appender = null;
		if((appender = (DailyRollingFileAppender) Logger.getRootLogger().getAppender("R")) != null) {
			appender.setFile(fileName);
		}
	}
}
